package cn.qicaiwang.open.common.constant;

public class Constants {
    public static final Object SERVER_VERSION = "1.0.1";
    public static final Object CLIENT_VERSION = "1.0.1";

    public static final String USERNAME_PASSWORD_LOGIN_URL = "/u/loginByJson";
    public static final String MOBILE_LOGIN_URL = "/u/loginByMobile";
    public static final String ACCESS_TOKEN_PREFIX = "_access_token:";
    public static final String WECHAT_BIND_PREFIX = "_wechat_bind:";

    public static final String UTF8 = "UTF-8";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    public static final String SUPER_ADMIN_ROLE = "ROLE_SUPER_ADMIN";

    /**
     * 菜单类型（目录）
     */
    public static final Integer TYPE_DIR = 0;

    /**
     * 菜单类型（菜单）
     */
    public static final Integer TYPE_MENU = 1;

    /**
     * 菜单类型（按钮）
     */
    public static final Integer TYPE_BUTTON = 2;

    /**
     * 通用成功标识
     */
    public static final Integer SUCCESS = 1;

    /**
     * 通用失败标识
     */
    public static final Integer FAIL = 0;

    /**
     * 资源映射路径 前缀
     */
    public final static String RESOURCE_PREFIX = "/resources";

    /**
     * RMI 远程方法调用
     */
    public static final String LOOKUP_RMI = "rmi:";

    /**
     * LDAP 远程方法调用
     */
    public static final String LOOKUP_LDAP = "ldap:";

    /**
     * LDAPS 远程方法调用
     */
    public static final String LOOKUP_LDAPS = "ldaps:";

    /**
     * 定时任务违规的字符
     */
    public static final String[] JOB_ERROR_STR = { "java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
            "org.springframework", "org.apache" };

    public static final String CN_COUNTRY_CODE = "+86";
    public static final String SIGNNAME = "小鹿线";

    /**
     * 顶级机构ID
     */
    public static final String UNIT_ROOT_ID = "-1";

    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

    public static final String RABBITMQ_DEFAULT_QUEUE = "qicaiwang-crm-queue";
    public static final String RABBITMQ_DEFAULT_DIRECT_EXCHANGE = "qicaiwang-crm-direct_exchange";
    public static final String RABBITMQ_DEFAULT_DIRECT_ROUTING = "qicaiwang-crm-direct-routing";
}
